#!python
from binary_helpers import *

""" child.py
Create a simple binary file whith a child node
child.xml and this file must ALWAYS be in sync
"""

FILE = "child.bin"
MODEL = "child.xml"
VALUES = [123456, 7890, 146457, 3.14159, 42, bstr("hello world", 32)]

def main():
    """
    """
    fd = open(FILE, mode='wb') 

    int_to_bin(fd, 123456)
    int_to_bin(fd, 7890)
    int_to_bin(fd, 146457)
    float_to_bin(fd, 3.14159)
    int_to_bin(fd, 42)
    string_to_bin(fd, "hello world", 32)

    fd.close()

if __name__ == "__main__":
    main()

